delete
Type
command
Summary
Removes the selected text, or the selected section of an image, or an object.
Syntax
delete [<object>]
Description
Use the delete command to remove objects or text from the stack.
If no object is specified, the delete command is equivalent to pressing the Delete key. It removes the selection.
Use the delete command to remove a control, card, or group permanently. To remove an object and place it on the clipboard for pasting elsewhere, use the cut command instead. To temporarily hide a control, use the hide command instead.
You cannot delete the object whose script holds a currently executing handler.
Parameters
Name | Type | Description |
---|---|---|
object | Any available object. If no object is specified, the delete command removes whatever is currently selected. |
Examples
delete
delete this card
delete button 1
Related
property: script, cantDelete, selected
command: delete chunk, cut, undo, delete stack, compact, remove, group, delete variable, hide, ungroup, delete file
function: deleteResource, clipboard
glossary: object, command, handler, execute
keyword: selection, card, image, control
message: deleteEPS, deleteAudioclip, deleteButton, deletePlayer, deleteBackground, deleteImage, deleteCard, deleteGroup, deleteGraphic, deleteField, deleteVideoclip
object: stack
Compatibility and Support
Introduced
LiveCode 1.0
OS
mac
windows
linux
ios
android
Platforms
desktop
server
mobile